Repository navigation
feat(cnb): 同步托管运行时归档(含 Eclipse JDT LS)到 CNB 镜像 - #127
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
改动说明
Eclipse JDT Language Server (
download.eclipse.org/jdtls/milestones/...) 目前没有可用的国内公共开源镜像,导致国内用户首次使用 Java 插件自动下载 JDTLS 较慢或易超时。本 PR 复用
Lithe-store现有的 CNB 镜像流程,新增通用外部运行时镜像清单与校验:lithe-runtime-mirrors.json:登记eclipse-jdtls-1.61.0(jdt-language-server-1.61.0-202609031315.tar.gz,原样 SHA-256 校验,附EPL-2.0许可链接)。scripts/validate-runtime-mirrors.mjs:校验 schemaVersion、唯一且有序的 ID、单段安全文件名、HTTPS 无凭据 URL、64 位小写 SHA-256 与许可信息。scripts/mirror-cnb.mjs:同步lithe-runtime-mirrors.json到 CNBmanaged-runtimesRelease(https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz),沿用 SHA-256 校验、断点/缓存跳过与过期资产清理,并将运行时包下载超时放宽到 180s。.github/workflows/mirror-cnb.yml与.github/workflows/validate.yml:把lithe-runtime-mirrors.json纳入触发与校验,并将scripts/mirror-cnb.test.mjs纳入 CI 单元测试。scripts/mirror-cnb.test.mjs补充受管运行时同步、缓存命中跳过、过期资产清理、SHA-256 校验拒绝及清单校验单元测试。验证
node --test scripts/store.test.mjs scripts/plugin-deltas.test.mjs scripts/mirror-cnb.test.mjs:64/64 通过node scripts/validate-index.mjs lithe-plugin-index.json:14 个插件全部通过node scripts/validate-recommendations.mjs lithe-plugin-recommendations.json lithe-plugin-index.json:4 条推荐通过node scripts/validate-runtime-mirrors.mjs lithe-runtime-mirrors.json:1 条运行时镜像通过